<?php
    $this->load->view('wx/public/header.html', [
        'time' => time(),
        'index' => 4,
        'css' => [
            'assets/wx/css/center.css',
        ]
    ]);
?>

<body class="center" ng-controller="wx-center-cash-controller">


<section class="aui-content" style="min-height: 100vh;">

    <div class="gu-cashout-panel aui-padded-b-10">
        <a class="detail" href="/center/cashDetail"><span class="fa fa-list-ul"></span> 账单</a>
        <p class="tips">总资产（元）</p>
        <strong ng-bind="'￥' + userInfo.amount_cny"></strong>
    </div>

    <div class="aui-row cash-block aui-margin-b-5">
        <div class="aui-col-xs-6 item aui-border-b aui-border-r">
            <div class="aui-grid-label red">冻结资产</div>
            <strong ng-bind="userInfo.amountFreeze_format"></strong>
        </div>
        <div class="aui-col-xs-6 item aui-border-b aui-border-r">
            <div class="aui-grid-label green">活动资金</div>
            <strong ng-bind="userInfo.amountUnLimit_format"></strong>
        </div>
        <div class="aui-col-xs-6 item aui-border-b">
            <div class="aui-grid-label danger">仅限购物</div>
            <strong ng-bind="userInfo.amountBuy_format"></strong>
        </div>
        <div class="aui-col-xs-6 item aui-border-b">
            <div class="aui-grid-label blue">提现中</div>
            <strong ng-bind="userInfo.amountCashout_format"></strong>
        </div>
    </div>

    <div class="aui-content aui-margin-b-5">
        <ul class="aui-list aui-list-in gu-clean-border">
            <li class="aui-list-item gu-cashin gu-list-item" ng-click="cashin()">
                <div class="aui-list-item-inner aui-list-item-arrow">
                    <div class="aui-list-item-title gu-item">充值</div>
                </div>
            </li>
            <li class="aui-list-item gu-cashout gu-list-item" ng-click="cashout()">
                <div class="aui-list-item-inner aui-list-item-arrow">
                    <div class="aui-list-item-title gu-item">取现</div>
                </div>
            </li>
        </ul>
    </div>

    <div class="aui-content aui-margin-b-5">
        <ul class="aui-list aui-list-in gu-clean-border">
            <li class="aui-list-item gu-integral gu-list-item" ng-click="integral()">
                <div class="aui-list-item-inner aui-list-item-arrow">
                    <div class="aui-list-item-title gu-item">积分</div>
                </div>
            </li>
        </ul>
    </div>
</section>
<?php
    $this->load->view('wx/public/footer.html', [
        'js' => [
            'assets/wx/js/center/cash/cash.js'
        ]
    ]);
?>

